.model .small
.8086    
;define the data segment
data segment
    
data ends               

;define the code segment
code segment            
    assume cs:code, ds:data
main proc far
    mov ax, data
    mov ds, ax     
    
endp        
code ends  
    end